package com.xiaoyu.studyworkspace.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.xiaoyu.studyworkspace.common.kapaentity.register.selectinfo.SelectInfo;
import com.xiaoyu.studyworkspace.dto.EMaCheckDTO;
import com.xiaoyu.studyworkspace.dto.EMaRegisterDTO;
import com.xiaoyu.studyworkspace.dto.EMaUserInfoDTO;
import com.xiaoyu.studyworkspace.dto.TransferDTO;
import com.xiaoyu.studyworkspace.pojo.AutoRegister;
import com.xiaoyu.studyworkspace.pojo.EMaUerInfo;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface AutoRegisterService {
    public EMaUerInfo loginBySecret(EMaUserInfoDTO eMaUserInfoDTO);

    public EMaUerInfo loginBySecret2(EMaUserInfoDTO eMaUserInfoDTO) throws JsonProcessingException;


    public String loginReq(EMaCheckDTO eMaCheckDTO);

    public void register(EMaRegisterDTO eMaRegisterDTO, String realPath) throws InterruptedException, IOException;

    public void register2(EMaRegisterDTO eMaRegisterDTO, String realPath) throws InterruptedException, IOException;

    public void importIdentityCard() throws IOException;

    public List<AutoRegister> getRegisterRecord(@Param("userId") Integer userId);

    public void importAccout(String realPath,String currentId) throws IOException, InterruptedException;

    public SelectInfo getUserInfo(String userId) throws IOException;

    public void transfer(TransferDTO transferDTO) throws IOException, InterruptedException;

    public void startAppear(int userId) throws IOException, NoSuchMethodException, InvocationTargetException, IllegalAccessException;

    public void scanPhone(String realPath) throws InterruptedException, IOException;

    public void scanPhone2(String realPath) throws InterruptedException, IOException;

}
